package cn.kzgg.ymcc.vo;

import cn.kzgg.ymcc.result.PageList;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

/**
 * 聚合结果封装
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AggrPageList<T> extends PageList<T> {

    private Map<String, List<AggrsBucket>> aggResult;

    public AggrPageList(Long total, List<T> rows, Map<String, List<AggrsBucket>> map) {
        super(total, rows);
        this.aggResult = map;
    }
}
